/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
//package berkeley.project1;

/* DListNode.java */

/**
 *  A DListNode1 is a node in a DList1 (doubly-linked list).
 */

public class DListNode {

  /**
   *  item references the item stored in the current node.
   *  prev references the previous node in the DList.
   *  next references the next node in the DList.
   *
   *  DO NOT CHANGE THE FOLLOWING FIELD DECLARATIONS.
   */

  public int[] item;
  public DListNode prev;
  public DListNode next;

  /**
   *  DListNode1() constructor.
   */
  DListNode() {
    item = new int[3];
    prev = null;
    next = null;
  }

  DListNode(int[] i) {
    this();
    System.arraycopy(i, 0, item, 0, i.length);
  }
  
  public int[] getItem() {
      return item;
  }
}

